package com.cdut.logistics.action.businesses;

import java.util.List;

import com.cdut.logistics.intercepter.system.AuthorityIntercepter;
import com.cdut.logistics.model.entity.Model.Suggestion;
import com.cdut.logistics.service.interf.businesses.RemarkService;
import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
@Before(AuthorityIntercepter.class)
public class RemarkController extends Controller {
	
	  RemarkService  remarkService;
	  /**
	   *   查询建议
	   */
      public  void search_remark()
      {
    	  List<Suggestion> list= remarkService.remark_query();
    	 
    	  setAttr("list",list);
    	  renderJson();
      }
      
      /**
       * 运维人员删除建议
       */
      public  void update_remark()
      {
    	  int remark_id= getParaToInt("remark_id");
    	  boolean is_success = remarkService.remark_update(remark_id);
    	  
    	  setAttr("is_success",is_success);
    	  renderJson();
      }
}
